<%@ Page Language="C#" AutoEventWireup="true" CodeFile="EditarPerfil.aspx.cs" Inherits="loggedin_EditarPerfil" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Mi Perfil</title>
    <link rel="stylesheet" href="../css/wide.css" type="text/css" media="screen, projection" />
    <style type="text/css">
        .style1
        {
            font-size: medium;
            color: #FFFFFF;
        }
        .style2
        {
            font-size: medium;
        }
        .style3
        {
            color: #FFFFFF;
        }
    </style>
    <script language="javaScript" src="../js/Validaciones.js" type="text/javascript"> </script>
</head>
<body>
    <div align="center" style="margin-left: auto; margin-right: auto; border-left: 1px solid black;
        border-right: 1px solid black;">
        <form id="form1" runat="server">
        <div id="body-top">
                 
            </div>
        <div id="body-middle" class="clearfix">
            <!-- Main Column -->
            <div id="main-col">
            <div id="content-top">
                    </div>
                <div id="content-wrapper">
                    <div id="content">
                        <div id="mainContent">
                            <table border="0" style="border-left-color: #688ba8; border-bottom-color: #688ba8;
                                border-top-style: solid; border-top-color: #688ba8; border-right-style: solid;
                                border-left-style: solid; border-right-color: #688ba8; border-bottom-style: solid">
                                <tr>
                                    <td align="left" style="border-bottom: 1px solid black;" colspan="2">
                                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Default.aspx">Home</asp:HyperLink>&nbsp;
                                        <br />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" style="height: 57px; background-color: #688ba8;" align="center">
                                        <br />
                                        <span class="style1">Edita tu perfil de usuario</span>
                                        <br />
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 438px; background-color: #688ba8;" align="center">
                                        <table style="background-color: #c5d6e8; border-right: silver thin solid; border-top: silver thin solid;
                                            border-left: silver thin solid; border-bottom: silver thin solid; width: 388px;"
                                            border="0">
                                            <tr>
                                                <td style="width: 153px" align="left">
                                                    <asp:Label ID="Label3" runat="server" Text="Nombre de usuario:"></asp:Label>
                                                </td>
                                                <td align="left" style="width: 223px">
                                                    <asp:Label ID="lblNombreUsuarioActual" runat="server"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 153px" align="left">
                                                    <asp:Label ID="Label4" runat="server" Text="Localidad actual:"></asp:Label>
                                                </td>
                                                <td align="left" style="width: 223px">
                                                    <asp:Label ID="lblLocalidadActual" runat="server"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="width: 153px" align="left">
                                                    <asp:Label ID="Label1" runat="server" Text="Nueva Localidad:"></asp:Label>
                                                </td>
                                                <td align="left" style="width: 223px">
                                                    <asp:TextBox ID="txtNuevaLocalidad" runat="server"></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="left" style="width: 153px">
                                                </td>
                                                <td align="left" style="width: 223px">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="left" style="width: 153px">
                                                    <asp:Label ID="Label5" runat="server" Text="Email actual:"></asp:Label>
                                                </td>
                                                <td align="left" style="width: 223px">
                                                    <asp:Label ID="lblEmailActual" runat="server"></asp:Label>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="left" style="width: 153px">
                                                    <asp:Label ID="Label2" runat="server" Text="Nuevo Email:"></asp:Label>
                                                </td>
                                                <td align="left" style="width: 223px">
                                                    <asp:TextBox ID="txtNuevoEmail" runat="server" ></asp:TextBox>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="left" style="width: 153px">
                                                    &nbsp;
                                                </td>
                                                <td align="left" style="width: 223px">
                                                    &nbsp;
                                                </td>
                                            </tr>
                                            <tr>
                                                <td align="left" style="width: 153px">
                                                </td>
                                                <td align="right" style="width: 223px">
                                                    <asp:Button ID="btnCambiaPerfil" runat="server" Text="Cambiar" OnClick="btnCambiaPerfil_Click" />
                                                </td>
                                            </tr>
                                        </table>
                                        &nbsp;
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" colspan="2" style="height: 16px">
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" style="height: 57px; background-color: #688ba8;" align="center">
                                        <br />
                                        <span class="style2"><span class="style3">Cambio de password </span></span>
                                    </td>
                                </tr>
                                <tr>
                                    <td style="width: 438px; background-color: #688ba8;" align="center">
                                        <asp:ChangePassword ID="ChangePassword1" runat="server" CancelDestinationPageUrl="~/Default.aspx"
                                            ChangePasswordButtonText="Cambiar Password" ConfirmPasswordCompareErrorMessage="Los paswords no coinciden."
                                            ConfirmPasswordRequiredErrorMessage="Confirma el nuevo password." ContinueDestinationPageUrl="~/loggedin/EditarPerfil.aspx"
                                            Style="background-color: #c5d6e8" ChangePasswordTitleText="" ConfirmNewPasswordLabelText="Confirma Nuevo Password:"
                                            ContinueButtonText="Continuar" NewPasswordRequiredErrorMessage="Ingresa un nuevo password."
                                            PasswordRequiredErrorMessage="Ingresa el password anterior." SuccessText="Tu password ha sido cambiado!"
                                            SuccessTitleText="Cambio de password completado">
                                            <ChangePasswordTemplate>
                                                <table border="0" cellpadding="1" cellspacing="0" style="border-collapse: collapse;
                                                    height: 174px">
                                                    <tr>
                                                        <td style="width: 379px; height: 180px">
                                                            <table border="0" cellpadding="0" style="width: 388px">
                                                                <tr>
                                                                    <td align="center" colspan="2">
                                                                        &nbsp;&nbsp;
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="right">
                                                                        <asp:Label ID="CurrentPasswordLabel" runat="server" AssociatedControlID="CurrentPassword">Password actual:</asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="CurrentPassword" runat="server" TextMode="Password"></asp:TextBox>
                                                                        <asp:RequiredFieldValidator ID="CurrentPasswordRequired" runat="server" ControlToValidate="CurrentPassword"
                                                                            ErrorMessage="Password is required." ToolTip="Password is required." ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="right">
                                                                        <asp:Label ID="NewPasswordLabel" runat="server" AssociatedControlID="NewPassword">Nuevo Password:</asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="NewPassword" runat="server" TextMode="Password"></asp:TextBox>
                                                                        <asp:RequiredFieldValidator ID="NewPasswordRequired" runat="server" ControlToValidate="NewPassword"
                                                                            ErrorMessage="New Password is required." ToolTip="New Password is required."
                                                                            ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="right">
                                                                        <asp:Label ID="ConfirmNewPasswordLabel" runat="server" AssociatedControlID="ConfirmNewPassword">Confirma Nuevo Password:</asp:Label>
                                                                    </td>
                                                                    <td>
                                                                        <asp:TextBox ID="ConfirmNewPassword" runat="server" TextMode="Password"></asp:TextBox>
                                                                        <asp:RequiredFieldValidator ID="ConfirmNewPasswordRequired" runat="server" ControlToValidate="ConfirmNewPassword"
                                                                            ErrorMessage="Confirma Nuevo Password es indispensable." ToolTip="Confirma Nuevo Password es indispensable."
                                                                            ValidationGroup="ChangePassword1">*</asp:RequiredFieldValidator>
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="center" colspan="2">
                                                                        <asp:CompareValidator ID="NewPasswordCompare" runat="server" ControlToCompare="NewPassword"
                                                                            ControlToValidate="ConfirmNewPassword" Display="Dynamic" ErrorMessage="Los paswords no coinciden."
                                                                            ValidationGroup="ChangePassword1"></asp:CompareValidator>&nbsp;
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="center" colspan="2" style="color: red">
                                                                        <asp:Literal ID="FailureText" runat="server" EnableViewState="False"></asp:Literal>&nbsp;
                                                                    </td>
                                                                </tr>
                                                                <tr>
                                                                    <td align="right">
                                                                        &nbsp;
                                                                    </td>
                                                                    <td align="right">
                                                                        <asp:Button ID="ChangePasswordPushButton" runat="server" CommandName="ChangePassword"
                                                                            Text="Cambiar Password" ValidationGroup="ChangePassword1" Width="141px" />&nbsp;
                                                                    </td>
                                                                </tr>
                                                            </table>
                                                        </td>
                                                    </tr>
                                                </table>
                                            </ChangePasswordTemplate>
                                        </asp:ChangePassword>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div> <div id="content-bottom">
                    </div>
            </div>
        </div>
        <div id="body-bottom">
            </div>
        </form>
    </div>
</body>
</html>
